package com.gt.utils;

/**
 * @description: 随机数字工具类
 * @author: huge
 * @create: 2020-12-24 11:21
 **/
public class MathRandomUtil {


    /**
    * @Description: 随机产生4位随机数
    * @Param:
    * @return: 随机4位数字
    * @Author: huge
    * @Date: 2020/12/24 11:43
    */
    public static  String getFourMathRandom() {
        String str = "";
        for(int i = 0 ;i<4;i++) {
            int b = (int) (Math.random() * 10);
            str += b;
        }
            return str;
    }

}
